import httpInstance from "@/utils/http.js";

export const insertCartApi = ({ skuId, count }) => {
  return httpInstance({
    url: "/member/cart",
    method: "post",
    data: {
      skuId,
      count
    }
  })
}
export const findNewCartListApi = () => {
  return httpInstance({
    url: "member/cart"
  })
}
export const deleteCartApi = (ids) => {
  return httpInstance({
    url: '/member/cart',
    method: 'delete',
    data: {
      ids
    }
  })
}
export const mergeCartApi = (data) => {
  return httpInstance({
    url: '/member/cart/merge',
    method: 'post',
    data
  })
}
